package com.springboot.hibernate.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 管理员
 */
@Data
@Entity
@Table(name = "t_admin")
//@SequenceGenerator(name = "sequenceGenerator", sequenceName = "t_admin_sequence")
public class Admin extends BaseEntity{
    /** 用户名 */
    private String username;

    /** 密码 */
    private String password;

    /** E-mail */
    private String email;

    /** 是否启用 */
    private Boolean isEnabled;

    /** 是否锁定 */
    private Boolean isLocked;
}
